package main.java.com.blog.service;

import com.blog.dao.FabMapper;
import com.blog.entity.Fab;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by Admin on 2017/6/9.
 */
@SuppressWarnings("ALL")
@Service("FabService")
public class FabServiceImlp implements FabService {

    @Autowired
    FabMapper fabMapper;

    @Override
    public List<Fab> findAllFab() {
        return fabMapper.selectAllFab();
    }

    @Override
    public int addFab(Fab fab) {
        return fabMapper.insertSelective(fab);
    }

    @Override
    public int updateByTitleAndAccount(Fab fab) {
        return fabMapper.updateByArtTitleAndUserAccount(fab);
    }
}
